﻿using Volo.Abp.Identity;
using Volo.Abp.Modularity;
using DouCat.Blog.Application.Caching;
using Microsoft.Extensions.DependencyInjection;
using DouCat.Blog.Domain.Configurations;

namespace DouCat.Blog.Application
{
    [DependsOn(
        typeof(AbpIdentityApplicationModule),
        typeof(DouCatBlogApplicationCachingModule)
        )]
    public class DouCatBlogApplicationModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            context.Services.AddStackExchangeRedisCache(options =>
            {
                options.Configuration = AppSettings.Caching.RedisConnectionString;
            });
        }
    }
}
